package com.example.user.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmApUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "leadnews-wemedia")
public interface WeMediaFeign {

    @PostMapping("/service_9003/api/vi/wemedia/add_wemedia_user")
    ResponseResult addWeMediaUser(@RequestBody WmApUserDto wmApUserDto);

    @GetMapping("/service_9003/api/vi/wemedia/get_wmuser_by_name")
    ResponseResult getMediaUserByName(@RequestParam String name);

}
